-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log (instead of raise) exceptions when running as a server extension #295
Conversation
bccf8be
to
d6309ba
Compare
d6309ba
to
59a011a
Compare
d171191
to
fc8fd7d
Compare
fc8fd7d
to
585e103
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Zsailer, some comments but this should not block from merging.
projects/jupyter-server-ydoc/jupyter_server_ydoc/websocketserver.py
Outdated
Show resolved
Hide resolved
f"Document Room Exception, (room_id={self._room_id or 'unknown'}): ", | ||
exc_info=exception, | ||
) | ||
return True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is almost the same function as in websocketserver.py
, except for the logging message. I think this should be factored out, with an extra-argument for the message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For sure. Since this is an internal definition right now, let's factor this out in a later PR. I want to proceed with merging, releasing, and testing.
…er.py Co-authored-by: David Brochart <[email protected]>
This supersedes some of #294, leveraging changes in pycrdt-websocket v0.13.1.
In #290, we see cases where the y-websocket server becomes unusable anytime an exception is raised within the y-websocket server's task groups. We made changes in pycrdt-websocket so that these exceptions could optionally be logged instead of raised, thereby keeping the server running.
This PR leverages those changes so we can ensure that there serve is never blocked.
We need to bump the pycrdt-websocket minimum version to get these changes.